/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package me.uniauto.zz.cwl.entity.hjrk;

import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 户籍人口Entity
 * @author 王娜
 * @version 2019-02-18
 */
@Table(name="cwl_syrk_hjrk", alias="a", columns={
		@Column(name="rhyzbs", attrName="rhyzbs", label="人户一致标识01-一致02-不一致"),
		@Column(name="hh", attrName="hh", label="户号"),
		@Column(name="hzgmsfhm", attrName="hzgmsfhm", label="户主公民身份号码"),
		@Column(name="hzxm", attrName="hzxm", label="户主姓名"),
		@Column(name="yhzgx", attrName="yhzgx", label="与户主关系"),
		@Column(name="hzlxfs", attrName="hzlxfs", label="户主联系方式手机号码或固定电话号码"),
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="bz", attrName="bz", label="备注"),
		@Column(name="cjr", attrName="cjr", label="创建人"),
		@Column(name="cjdw", attrName="cjdw", label="创建单位"),
		@Column(name="cjrq", attrName="cjrq", label="创建日期"),
		@Column(name="gxr", attrName="gxr", label="更新人"),
		@Column(name="gxdw", attrName="gxdw", label="更新单位"),
		@Column(name="gxrq", attrName="gxrq", label="更新日期"),
		@Column(name="sswg", attrName="sswg", label="所属网格id"),
		@Column(name="sswgmc", attrName="sswgmc", label="所属网格名称"),
		@Column(name="jmxxid", attrName="jmxxid", label="居民信息id"),
		@Column(name="jg", attrName="jg", label="籍贯"),
		@Column(name="zy", attrName="zy", label="职业"),
		@Column(name="source", attrName="source", label="数据来源"),
	}, orderBy="a.id DESC"
)
public class CwlSyrkHjrk extends DataEntity<CwlSyrkHjrk> {
	
	private static final long serialVersionUID = 1L;
	private String rhyzbs;		// 人户一致标识01-一致02-不一致
	private String hh;		// 户号
	private String hzgmsfhm;		// 户主公民身份号码
	private String hzxm;		// 户主姓名
	private String yhzgx;		// 与户主关系
	private String hzlxfs;		// 户主联系方式手机号码或固定电话号码
	private String bz;		// 备注
	private String cjr;		// 创建人
	private String cjdw;		// 创建单位
	private Date cjrq;		// 创建日期
	private String gxr;		// 更新人
	private String gxdw;		// 更新单位
	private Date gxrq;		// 更新日期
	private String sswg;		// 所属网格id
	private String sswgmc;		// 所属网格名称
	private String jmxxid;		// 居民信息id
	private String jg;		// 籍贯
	private String zy;		// 职业
	private String source;		// 数据来源
	
	public CwlSyrkHjrk() {
		this(null);
	}

	public CwlSyrkHjrk(String id){
		super(id);
	}
	
	@NotBlank(message="人户一致标识01-一致02-不一致不能为空")
	@Length(min=0, max=2, message="人户一致标识01-一致02-不一致长度不能超过 2 个字符")
	public String getRhyzbs() {
		return rhyzbs;
	}

	public void setRhyzbs(String rhyzbs) {
		this.rhyzbs = rhyzbs;
	}
	
	@NotBlank(message="户号不能为空")
	@Length(min=0, max=100, message="户号长度不能超过 100 个字符")
	public String getHh() {
		return hh;
	}

	public void setHh(String hh) {
		this.hh = hh;
	}
	
	@Length(min=0, max=18, message="户主公民身份号码长度不能超过 18 个字符")
	public String getHzgmsfhm() {
		return hzgmsfhm;
	}

	public void setHzgmsfhm(String hzgmsfhm) {
		this.hzgmsfhm = hzgmsfhm;
	}
	
	@Length(min=0, max=50, message="户主姓名长度不能超过 50 个字符")
	public String getHzxm() {
		return hzxm;
	}

	public void setHzxm(String hzxm) {
		this.hzxm = hzxm;
	}
	
	@NotBlank(message="与户主关系不能为空")
	@Length(min=0, max=2, message="与户主关系长度不能超过 2 个字符")
	public String getYhzgx() {
		return yhzgx;
	}

	public void setYhzgx(String yhzgx) {
		this.yhzgx = yhzgx;
	}
	
	@Length(min=0, max=50, message="户主联系方式手机号码或固定电话号码长度不能超过 50 个字符")
	public String getHzlxfs() {
		return hzlxfs;
	}

	public void setHzlxfs(String hzlxfs) {
		this.hzlxfs = hzlxfs;
	}
	
	public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}
	
	@Length(min=0, max=36, message="创建人长度不能超过 36 个字符")
	public String getCjr() {
		return cjr;
	}

	public void setCjr(String cjr) {
		this.cjr = cjr;
	}
	
	@Length(min=0, max=60, message="创建单位长度不能超过 60 个字符")
	public String getCjdw() {
		return cjdw;
	}

	public void setCjdw(String cjdw) {
		this.cjdw = cjdw;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCjrq() {
		return cjrq;
	}

	public void setCjrq(Date cjrq) {
		this.cjrq = cjrq;
	}
	
	@Length(min=0, max=36, message="更新人长度不能超过 36 个字符")
	public String getGxr() {
		return gxr;
	}

	public void setGxr(String gxr) {
		this.gxr = gxr;
	}
	
	@Length(min=0, max=60, message="更新单位长度不能超过 60 个字符")
	public String getGxdw() {
		return gxdw;
	}

	public void setGxdw(String gxdw) {
		this.gxdw = gxdw;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getGxrq() {
		return gxrq;
	}

	public void setGxrq(Date gxrq) {
		this.gxrq = gxrq;
	}
	
	@Length(min=0, max=255, message="所属网格id长度不能超过 255 个字符")
	public String getSswg() {
		return sswg;
	}

	public void setSswg(String sswg) {
		this.sswg = sswg;
	}
	
	@Length(min=0, max=100, message="所属网格名称长度不能超过 100 个字符")
	public String getSswgmc() {
		return sswgmc;
	}

	public void setSswgmc(String sswgmc) {
		this.sswgmc = sswgmc;
	}
	
	public String getJmxxid() {
		return jmxxid;
	}

	public void setJmxxid(String jmxxid) {
		this.jmxxid = jmxxid;
	}
	
	@Length(min=0, max=50, message="籍贯长度不能超过 50 个字符")
	public String getJg() {
		return jg;
	}

	public void setJg(String jg) {
		this.jg = jg;
	}
	
	@Length(min=0, max=30, message="职业长度不能超过 30 个字符")
	public String getZy() {
		return zy;
	}

	public void setZy(String zy) {
		this.zy = zy;
	}
	
	@Length(min=0, max=255, message="数据来源长度不能超过 255 个字符")
	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}
	
}